<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
    <!-- Loading Bootstrap -->
    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
</head>
<body>
<div class="alert alert-success">编辑货品</div>
    <table class="table table-hover">
    <form action="" method="post">
        <tr class="active">
            <th width="120">货品ID</th>
            <?php foreach ($value as $v){?>
                <td><?php echo $v['taname']?></td>
            <?php }?>
            <th width="100">货号</th>
            <th width="100">库存</th>
            <th width="200">操作</th>
        </tr>
        <tr>
            <td><?php echo $data['glid']?></td>
            <?php foreach ($value as $v){?>
                <td>
                    <select name="groupid[]" id="">
                        <option value="">请选择</option>
                        <?php foreach ($v['value'] as $vv){?>
                            <option value="<?php echo $vv['gaid']?>" <?php if($v['zhi']==$vv['gaid']){?>
                 selected
               <?php }?>><?php echo $vv['gavalue']?></option>
                        <?php }?>
                    </select>
                    <input type="hidden" name="goods_gid" value="<?php echo $v['goods_gid']?>">
                </td>
            <?php }?>
            <td>
                <input type="text" name="num" id="" value="<?php echo $data['num']?>">
            </td>
            <td>
                <input type="text" name="lstock" id="" value="<?php echo $data['lstock']?>">
            </td>
            <td>
                <input type="hidden" name="glid" value="<?php echo $data['glid']?>">
                <button class="btn btn-success" type="submit">保存</button>
                <a href="javascript:history.go(-1);" class="btn btn-info">返回上一页</a>
            </td>
            
        </tr>
    </form>
    </table>
</body>
</html>